package com.zrf.testchatgpt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrf.testchatgpt.entity.UserPainting;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface UserPaintingMapper extends BaseMapper<UserPainting> {
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    @Insert("insert into user_painting(user_id,painting_url) values(#{userId},#{paintingUrl})")
   public Integer insertDetail(UserPainting detail);
}
